package com.gsnd.briuppts.entity;

import java.io.Serializable;


import lombok.Data;

/**
 * 
 * @TableName issue_record
 */
@Data

public class IssueRecord implements Serializable {
    /**
     * 记录id
     */
    private Integer isrId;

    /**
     * 出单时间
     */

    private String isrTime;

    /**
     * 购买数量
     */

    private Integer isrNum;

    /**
     * 单价
     */
    private Double isrPrice;

    /**
     * 交付时间
     */
    private String isrDeliver;

    /**
     * 申请中,已出库,已完成
     */
    private String isrStatus;

    /**
     * 销售id
     */
    private String isrSaleId;

    /**
     * 客户id
     */
    private Integer isrCustomerId;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        IssueRecord other = (IssueRecord) that;
        return (this.getIsrId() == null ? other.getIsrId() == null : this.getIsrId().equals(other.getIsrId()))
            && (this.getIsrTime() == null ? other.getIsrTime() == null : this.getIsrTime().equals(other.getIsrTime()))
            && (this.getIsrNum() == null ? other.getIsrNum() == null : this.getIsrNum().equals(other.getIsrNum()))
            && (this.getIsrPrice() == null ? other.getIsrPrice() == null : this.getIsrPrice().equals(other.getIsrPrice()))
            && (this.getIsrDeliver() == null ? other.getIsrDeliver() == null : this.getIsrDeliver().equals(other.getIsrDeliver()))
            && (this.getIsrStatus() == null ? other.getIsrStatus() == null : this.getIsrStatus().equals(other.getIsrStatus()))
            && (this.getIsrSaleId() == null ? other.getIsrSaleId() == null : this.getIsrSaleId().equals(other.getIsrSaleId()))
            && (this.getIsrCustomerId() == null ? other.getIsrCustomerId() == null : this.getIsrCustomerId().equals(other.getIsrCustomerId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIsrId() == null) ? 0 : getIsrId().hashCode());
        result = prime * result + ((getIsrTime() == null) ? 0 : getIsrTime().hashCode());
        result = prime * result + ((getIsrNum() == null) ? 0 : getIsrNum().hashCode());
        result = prime * result + ((getIsrPrice() == null) ? 0 : getIsrPrice().hashCode());
        result = prime * result + ((getIsrDeliver() == null) ? 0 : getIsrDeliver().hashCode());
        result = prime * result + ((getIsrStatus() == null) ? 0 : getIsrStatus().hashCode());
        result = prime * result + ((getIsrSaleId() == null) ? 0 : getIsrSaleId().hashCode());
        result = prime * result + ((getIsrCustomerId() == null) ? 0 : getIsrCustomerId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", isrId=").append(isrId);
        sb.append(", isrTime=").append(isrTime);
        sb.append(", isrNum=").append(isrNum);
        sb.append(", isrPrice=").append(isrPrice);
        sb.append(", isrDeliver=").append(isrDeliver);
        sb.append(", isrStatus=").append(isrStatus);
        sb.append(", isrSaleId=").append(isrSaleId);
        sb.append(", isrCustomerId=").append(isrCustomerId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}